package com.baizhi.homework;

import java.io.File;
import java.io.IOException;

public class FileDemo01 {
    public static void main(String[] args) {
        try {
            File file = new File("./javase_io/aaa");
            file.mkdir();

            File file2 = new File(file,"a.text");
            boolean b = file2.createNewFile();

            if(b){
                System.out.println("创建成功");
            }else{
                System.out.println("已经存在");
            }

        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
